<?php foreach ($allstudents as $single_student): ?>
<div class="single">
<?php echo $html->link("为".$single_student['StudentProfile']['real_name']."追加课堂表现评价", array('controller' => 'performances', 'action' => 'append', $single_student['StudentProfile']['id'])); ?> | 
<?php echo $html->link("查看资料", array('controller' => 'student_profiles', 'action' => 'view_as_teacher', $single_student['StudentProfile']['id'])); ?>
</div>
<?php endforeach; ?>